import router from '../router'

export const mockNotice = [
  { "userName": "lucy", "amount": 3, "payeeAccount": "Gokasklcuy@gmail.com" },
  { "userName": "Caitlin", "amount": 10, "payeeAccount": "Caitlin9785612@gmail.com" },
  { "userName": "Gokouoooo", "amount": 5, "payeeAccount": "Gokouoooo971111@gmail.com" },
  { "userName": "AAAAndyy", "amount": 20, "payeeAccount": "AAAAndyy9979drogane@gmail.com" },
  { "userName": "ziyang", "amount": 3, "payeeAccount": "ziyang6514266af4@gmail.com" },
  { "userName": "yuanmeng", "amount": 5, "payeeAccount": "yuanmengaaaa1f511@gmail.com" },
  { "userName": "cn", "amount": 10, "payeeAccount": "cnaigek20gl123@gmail.com" },
  { "userName": "zh", "amount": 20, "payeeAccount": "jianguozhounian@gmail.com" }
]

export const signIn = {
  "todaySign": false,
  "signDays": 2,
  "rewardSignVOS": [
    {
      "days": 1,
      "value": 0.05
    },
    {
      "days": 2,
      "value": 0.05
    },
    {
      "days": 3,
      "value": 0.1
    },
    {
      "days": 4,
      "value": 0.05
    },
    {
      "days": 5,
      "value": 0.2
    },
    {
      "days": 6,
      "value": 0.05
    },
    {
      "days": 7,
      "value": 0.5
    }
  ]
}

export const newbie = {
  login: {
    status: 0,
    imgUrl: 'login.png',
    fn: () => { android.jumpToLogin() },
    goId: '1',
    name: 'login'
  },
  watchAds: {
    status: 0,
    imgUrl: 'watch.png',
    fn: () => { android.showNewbieRewardAd() },
    goId: '3',
    name: '看5次激励视频'
  }
}

export const todayTask = {
  thirty: {
    id: 38,
    name: 'Read news and tap all ads in the news flash',
    finishCount: 0,
    taskCount: 1,
    repeat: false,
    imgUrl: 'thirty.png',
    awardType: 'flame',
    fn: (device: string) => { window.location.href = `https://game.playmoregame.cc/7897/index.html?gameChannelId=7897&device=${device}` },
    goId: '33',
    gaName: '浏览30秒网页',
    isReceive: 2,
    isComplete: 2,
    rewardNum: 300,
    informationId: 7897
  },
  slot: {
    id: 39,
    name: 'Watch 3 ads to get wheats',
    finishCount: 0,
    taskCount: 3,
    repeat: false,
    imgUrl: 'black_trophy.png',
    awardType: 'flame',
    fn: () => { android.taskShowInter() },
    goId: '30',
    gaName: '观看3次广告',
    isReceive: 2,
    rewardNum: 50
  },
  egg: {
    name: 'Get substantial wheats through Easter Egg',
    finishCount: 0,
    taskCount: 15,
    repeat: false,
    imgUrl: 'broken-egg.png',
    awardType: 'flame',
    fn: () => { router.push({ path: '/egg' }) },
    goId: '6',
    gaName: '今日任务扭蛋',
    rewardNum: 0
  },
  lottery: {
    name: "Get substantial wheats through God's Gift",
    finishCount: 0,
    taskCount: 15,
    repeat: false,
    imgUrl: 'wheel.png',
    awardType: 'flame',
    fn: () => { router.push({ path: '/turntable' }) },
    goId: '7',
    gaName: '今日任务转盘',
    rewardNum: 0
  },
  watch: {
    id: 40,
    name: 'Watch videos to get substantial rewards',
    finishCount: 1,
    taskCount: 1,
    repeat: true,
    imgUrl: 'watch.png',
    awardType: 'flame',
    fn: () => { android.watchRewardAd(50) },
    goId: '8',
    gaName: '观看激励视频Claim',
    rewardNum: 50
  }
}


interface TaskKey {
  [key: number]: any | Object
}

export const dailyTaskIconMap: TaskKey = {
  1: { taskName: 'Morning Pray', imgUrl: 'morning_pray.png', fn: () => { android.jumpToPrayer() } },
  2: { taskName: 'Night Pray', imgUrl: 'night_pray.png', fn: () => { android.jumpToPrayer() } },
  3: { taskName: 'Set Mood', imgUrl: 'mood.png', fn: () => { android.jumpToMood() } },
  4: { taskName: 'Quiz 15', imgUrl: 'quiz.png', fn: () => { android.jumpToQuiz() } },
  5: { taskName: 'Quiz 30', imgUrl: 'quiz.png', fn: () => { android.jumpToQuiz() } },
  6: { taskName: 'Winning 6', imgUrl: 'win.png', fn: () => { android.jumpToQuiz() } },
  7: { taskName: 'Winning 10', imgUrl: 'win.png', fn: () => { android.jumpToQuiz() } },
  8: { taskName: 'read', imgUrl: 'read.png', fn: () => { android.jumpToBible() } },
  9: { taskName: 'watch', imgUrl: 'watch.png', fn: () => { android.jumpToStory() } }
}

export const dailyTaskClickEventMap: TaskKey = {
  1: { id: '12', name: '早祷告', },
  2: { id: '14', name: '晚祷告' },
  3: { id: '16', name: '设置心情' },
  4: { id: '18', name: '答题15次' },
  5: { id: '20', name: '答题30次' },
  6: { id: '22', name: '连胜6次' },
  7: { id: '24', name: '连胜10次' },
  8: { id: '26', name: '观看两章圣经' },
  9: { id: '28', name: '观看两个故事' },
}

export const game = {
  finishedNum: 0,
  isComplete: 2,
  isReceive: 2,
  taskId: '',
  taskName: 'Complete all game tasks to get wheat',
  total: 6,
  gameId: 2372,
  imgUrl: 'https://gamefront.91onegame.com/26676a60a444498f8dd17495d951e5f3.webp',
  goId: '10',
  name: 'playGame',
  claimId: '11',
  claimName: 'playGame_Claim'
}